Skip to content

Location of downloaded chromium #679

Closed
@sjfricke

Description

Is there a way to show the file path of where it is downloading Chromium when running npm i puppeteer as I can't seem to ever find where it actually is downloading it

Activity

ebidel

ebidel commented on Sep 4, 2017

@ebidel
Contributor

The path will change based on the platform that you install puppeteer on. install.js has methods for finding that path. Something like this should work:

const Downloader = require('puppeteer/utils/ChromiumDownloader');
const {chromium_revision} = require('puppeteer/package.json').puppeteer;
const info = Downloader.revisionInfo(Downloader.currentPlatform(), chromium_revision);
console.log(info);

info.executablePath will give you the binary's path. Useful when launching chrome: puppeter.launch({executablePath: info.executablePath}).

added a commit that references this issue on Sep 5, 2017
b7b2172
added a commit that references this issue on Sep 6, 2017
e12ce80
KaKi87

KaKi87 commented on May 1, 2020

@KaKi87

Hello, how can I do the same thing today ? The utils directory no longer exists. Thanks

prvnsmpth

prvnsmpth commented on May 16, 2020

@prvnsmpth
humkins

humkins commented on Oct 11, 2022

@humkins

run in the directory where node_modules is located

node -e "console.log(require('puppeteer').executablePath())"

Example output on Linux:

/app/node_modules/puppeteer/.local-chromium/linux-686378/chrome-linux/chrome
estatistics

estatistics commented on Oct 3, 2023

@estatistics

downloaded location in debian linux for chrome is /home/user/.cache/puppeteer/chrome/linux-117.0.5938.92/chrome-linux64/ and it is not detected at all. I will recommend puppeeteer to tell the EXPECTED full dir in order to be able to rename it for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @mathiasbynens@ebidel@prvnsmpth@humkins@sjfricke

      Issue actions

        Location of downloaded chromium Β· Issue #679 Β· puppeteer/puppeteer